<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 18-2-6
 * Time: 下午1:00
 * @var \yii\web\View $this
 * @var \backend\modules\logs\models\BankBackSendLog $model
 */

$out = [];
$request_data = unserialize($model->request_data);
if (isset($request_data['reqparam'])){
    $request_data['reqparam'] = \yii\helpers\ArrayHelper::toArray(json_decode($request_data['reqparam']));
}
\common\components\tools\Out::bo_array([
    'request_data' => $request_data,
], $out);
?>

<div class="credit-credot-order-detail">
    <div class="row">
        <div class="col-lg-12">
            <table class="table table-condensed table-bordered">
                <thead>
                <tr>
                    <th width="50px;">键名</th>
                    <th width="50px;">说明</th>
                    <th>值</th>
                </tr>
                </thead>
                <tbody>
                <?php foreach ($out as $k => $v): ?>
                    <?php
                    $x = "";
                    for ($i = 1; $i < $v['deep']; $i++) {
                        $x .= "|--";
                    }
                    ?>
                    <tr>
                        <td><?= $x . $v['k'] ?></td>
                        <td><?= $v['attr'] ?></td>
                        <td><?= $v['v'] ?></td>
                    </tr>
                <?php endforeach; ?>
                </tbody>
            </table>
        </div>
    </div>
</div>
